package com.yunnuo.system.dept.entity;

import com.yunnuo.system.comm.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 部门表
 * Created by 魏洪福(15064000912@163.com) on  2018/5/25.
 */
@Entity
@Table(name="SYS_DEPT")
public class Dept extends IdEntity {

    // 部门名称 
    private String deptName;
    // 显示顺序 
    private String orderNum;
    // 部门状态:0正常,1停用 
    private int  deptStatus;
    // 父部门ID  无父部门显示0
    private String  parentId;
    //部门code
    private String deptCode;
    // 父部门名称
    private String parentName;


    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public int getDeptStatus() {
        return deptStatus;
    }

    public void setDeptStatus(int deptStatus) {
        this.deptStatus = deptStatus;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptName='" + deptName + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", deptStatus=" + deptStatus +
                ", parentId='" + parentId + '\'' +
                ", deptCode='" + deptCode + '\'' +
                ", parentName='" + parentName + '\'' +
                '}';
    }
}
